﻿using UnityEngine;
using System.Collections;

public class ArmorySupply : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnClick()
    {
        GameObject.Find("MainCamera").GetComponent<AudioSource>().PlayOneShot(Resources.Load<AudioClip>("Audio/Pencil_Check"));

        if (transform.parent.GetComponent<ArmoryPaper>().m_SelectedWeapon != null)
        {
            GameObject.Find("ArmoryWdw").GetComponent<RightWdws>().SwipeToRightWdw();
        }
        GameObject.Find("RightWdw").GetComponent<RightWdwMgr>().CurWinNum = 0;

        InputMgr.GetInstance().m_MouseInputState = MOUSEINPUT_STATE.SUPPLY;
        GameObject.Find("SceneDataMgr").GetComponent<SceneDataMgr>().SupplyWeaponQueue = transform.parent.GetComponent<ArmoryPaper>().m_SelectedWeapon;
        GameTime.TimeSpeed_Play();
    }
}
